package org.liuqm.service.impl;

import org.liuqm.common.MybatisUtils;
import org.liuqm.entity.Auction;
import org.liuqm.mapper.AuctionMapper;
import org.liuqm.service.IAuctionService;

import java.util.List;

public class AuctionServiceImpl implements IAuctionService {

    AuctionMapper auctionMapper = MybatisUtils.getMapper(AuctionMapper.class,true);

    @Override
    public int getCount(Auction auction) {
        return auctionMapper.getCount(auction);
    }

    @Override
    public List<Auction> getPageList(Auction auction, int pageBegin, int pageSize) {
        return auctionMapper.getPageList(auction, (pageBegin-1)*pageSize, pageSize);
    }
}
